import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
// using ES6 modules
// npm install --save react-router-dom
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import registerServiceWorker from './registerServiceWorker';
import App from './App';
import Home from './home/Home';

const SliderComponent = () => (
	<Switch>
		<Route exact path="/" component={App} />
		<Route path="/Home" component={Home} />
	</Switch>
);

ReactDOM.render(
  <BrowserRouter>
		<SliderComponent />
  </BrowserRouter>,
  document.getElementById('root')
);
registerServiceWorker();
